package com.example.text.controller;

import com.example.text.utils.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/test")
public class MyInterceptorController {

    @GetMapping("/protected")
    public JsonResult protectedEndpoint() {
        return JsonResult.success("访问受保护接口成功", null);
    }
}